<include file="Public:header" />
<div class="container main"> <include file="Public:left" />
  <div class="w790">
  <script>
  	function uploaded(path){
		$("#img_url").attr("src",'__PUBLIC__'+path);
		$("input[name='img_url']").val(path);
	}
	function del_img(){
		if(confirm('您确定要删除图片吗?')){
			var file=$("input[name='img_url']").val();
			$.post("{:U('delImgBypath')}",{'path':file},function(data){
				$("input[name='img_url']").val('');
				$("#img_url").attr('src','');
			});
		}else{
			return false;
		}
	}
	//切换栏目方式
	function parseCateType(e){
		if($(e).val()==1){
			$('#pagesize').show();
		}else{
			$('#pagesize').hide();
		}
	}
	function after(e){
	    $(e).parent().parent().parent().parent().parent('li').after($(e).parent().parent().parent().parent().parent('li').prev());
    }
    function append(e){
	    $(e).parent().parent().parent().parent().parent('li').next().after($(e).parent().parent().parent().parent().parent('li'));
    }
	function delnews(e){
		$(e).parent().parent().parent().parent().parent().remove();
	}
	function addnews(){
		var html = $('#copyHTML').html();
		$(html).appendTo('#replyList ul');
	}
	
	
	function getExtends(e){
		var v = $('#extendsList'+$(e).val()).val();
		$('#extends').val(v);
	}
	
	function relateids(){
				art.dialog.data('relateidsBox',$('#relateids'));
				
				
				art.dialog.open('{:U('selectProduct', array('product_id' => $info['id']))}', {width: 800, height: 500,lock:true,title:'选择关联商品', ok:function(){
					var d = this.iframe.contentWindow.document;
					
			    }});
			}
	
  </script>
  <style>
  	#replyList ul li{margin-top:5px; background:#eee; padding:8px; width:700px;}
	.delnews{display:block; width:30px; font-size:20px; height:30px; border-radius:15px; background:#f00; color:#fff; line-height:30px; text-align:center;}
  </style>

 <div class="h"><a href="{:U('index')}" class="btn btn-info"><i class="glyphicon glyphicon-circle-arrow-left"></i> 返回拼团活动列表</a>
 
 </div>
    <form class="checkoutform form-horizontal" action="{:U('insert')}" method="post">
    
    
    
    
    
    
    
    
    

    
     
    
    
    
    
    
    
    
    
      <div class="table_ container">
      

  
     <div class="form-group">
      <label class="col-sm-2 control-label">活动名称</label>
      <div class="col-sm-10">
        <input class="form-control" name="title" value="{$info.title}" type="text" placeholder="活动名称">
      </div>
   </div>
      
      

      <div class="form-group">
      <label class="col-sm-2 control-label">商品价格</label>
      <div class="col-sm-10">
      
      <input type="text" class="form-control" id="price" value="{$info.price}" name="price" style="width:100px">单位（元）
      
         
      </div>
   </div>
      
     
   
     
   <div class="form-group">
      <label class="col-sm-2 control-label">结束时间</label>
      <div class="col-sm-10">
    <input type="text" class="form-control" datatype="*" onclick="WdatePicker();" id="end_time" value="{$info.end_time}" name="end_time" style="width:300px;">
      </div>
   </div> 

<div class="form-group">
      <label class="col-sm-2 control-label">组团人数(数字)</label>
      <div class="col-sm-10">
    <input type="number" class="form-control" id="capacity" value="{$info.capacity}" name="capacity" style="width:100px">
      </div>
   </div> 
      
      <div class="form-group">
      <label class="col-sm-2 control-label">虚拟购买人</label> 
      <div class="col-sm-10">
      <textarea name="virtualSale" class="form-control">{$info.virtualSale}</textarea>
      </div>
   </div> 
      
  <div class="form-group">
      <label class="col-sm-2 control-label">显示风格</label>
      <div class="col-sm-10">
         
          
          <label class="checkbox-inline" onClick="showPagesBox(this);">
          <img src="<notempty name="info['page_view_header_img']">__PUBLIC__{$info.page_view_header_img}<else/>__PUBLIC__/Admin/images/defaultimg.png</notempty>" width="100" height="100"><br>
          [详情头部风格]<input type="hidden" name="page_view_header_id" value="{$info.page_view_header_id}"><input type="hidden" name="page_view_header_img" value="{$info.page_view_header_img}"></label>
          
          <label class="checkbox-inline" onClick="showPagesBox(this);">
           <img src="<notempty name="info['page_view_img']">__PUBLIC__{$info.page_view_img}<else/>__PUBLIC__/Admin/images/defaultimg.png</notempty>" width="100" height="100"><br>
          [详情主体风格]<input type="hidden" name="page_view_id" value="{$info.page_view_id}"><input type="hidden" name="page_view_img" value="{$info.page_view_img}"></label>
          
           
          
          
          
          <label class="checkbox-inline" onClick="showPagesBox(this);">
          <img src="<notempty name="info['page_view_footer_img']">__PUBLIC__{$info.page_view_footer_img}<else/>__PUBLIC__/Admin/images/defaultimg.png</notempty>" width="100" height="100"><br>
          [详情底部风格]<input type="hidden" name="page_view_footer_id" value="{$info.page_view_footer_id}"><input type="hidden" name="page_view_footer_img" value="{$info.page_view_footer_img}"></label>
          
          
      </div>
   </div>
     
      
      
      
      
      
      
      
 
        
      </div><div class="pages"><button type="submit" class="btn btn-success">保存</button></div>
    </form>
  </div>
  <div class="clear"></div>
</div>

</body></html>